package redis;

import org.redisson.Redisson;
import org.redisson.RedissonLock;
import org.redisson.api.RBucket;
import org.redisson.api.RedissonClient;
import org.redisson.config.ClusterServersConfig;
import org.redisson.config.Config;

public class RedisTest {
    public static void main(String[] args) {
        Config config = new Config();
        ClusterServersConfig clusterServersConfig = config.useClusterServers();
        clusterServersConfig.addNodeAddress("127.0.0.1:6379");
        RedissonClient client = Redisson.create(config);
        RBucket<Object> bucket = client.getBucket("a");
    }
}
